<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../../inc/conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=auctions_title%></title>
<meta name="keywords" content="<%=auctions_key%>" />
<meta name="description" content="<%=auctions_desc%>" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.tabs.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    jQuery.focusblur = function(focusid) {
		var focusblurid = $(focusid);
		var defval = focusblurid.val();
		
        focusblurid.focus(function(){
			$("#select_key").toggle();
        });
        focusblurid.blur(function(){
			
        });
        
    };
    $.focusblur("#search_2");
	$("#select_key dd").click(function () {
		$('#search_2').val($(this).html());
		$("#select_key").hide();
	});
	
});




$(function(){
	$('.show_s_1').Tabs({
		event:'click'
	});
	$('.show_s_2').Tabs({
		event:'click'
	});
});	
</script>
<script type="text/javascript">
$(document).ready(function(){ 
	$('#select_1').change(function(){ 
		$('#search_1').val($(this).find("option:selected").text());
	});
}); 
$(function (){
  $(".main_class_li").hover(function(){
	$(".child_class",this).show();
  });
  $(".main_class_li").mouseleave(function(){
	$(".child_class",this).hide();
  });
});
</script>
<script>
$(function(){
	$(".ftoollist li").hover(function(){
			var $this = $(this);
			$this.addClass("on").siblings().removeClass("on");
			var $preNumber = $this.index();
			$(".fimglist li").removeClass("onpre");
			$(".fimglist li:eq($preNumber)").addClass("onpre");
			var distance = 602;
			distance = distance * $preNumber; 
			distance = distance * -1;
			$(".fimglist").stop().animate({marginLeft: distance + "px"}, {duration: 500});
	});
});
</script>
</head>
<body>


<!--#include file="../../common/topauctions.asp"-->





<div class="clear20"></div>
<!--main-->
<div class="fullwidth bg1">
	<div class="main">
		
        
       <!--#include file="common/left.asp"--> 
        
        
        		
		<div class="jp_middle">
			<div class="m_pic">
				<div class="focus">
					<div class="focusbox">         
						<div class="focusimg">
						<ul class="fimglist">
							<%		
							set rsnewx=server.CreateObject("adodb.recordset")
							sql="select url,pic from ad where type=3 and mark=1 order by sort"
							rsnewx.open sql,conn,1,3
							if not rsnewx.eof then
							i=1
							do while not rsnewx.eof 
							%>
							<li><a target="_blank" href="<%=rsnewx("url")%>"><img src="<%=rsnewx("pic")%>" alt="" width="602" height="200" /></a></li>
							<%
							if i=1 then
							  adlist="<li class=""on""><a href=""javascript:;""><img src="""&rsnewx("pic")&"""></a></li>"
							else
							  adlist=adlist+"<li><a href=""javascript:;""><img src="""&rsnewx("pic")&"""></a></li>"
							end if
							
							i=i+1
							rsnewx.movenext
							loop
							rsnewx.close
							set rsnewx=nothing
							end if		 
							%>
						</ul>
						</div> 
						<div class="focustool">
						<ul class="ftoollist">
							<%=adlist%>
						</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="jp_m_box_2">
				<div class="reg_box show_s_1">
					<ul class="tab_menu">
						
                        <%		
					  set rshelp=server.CreateObject("adodb.recordset")
			          sql="select top 12 pic,id,title from hot order by sort asc,id asc"
			          rshelp.open sql,conn,1,3
			          if not rshelp.eof then
					  i=1
			          do while not rshelp.eof
					  current=""
					  if i=1 or i=7 then current="current "
					  if i<=6 then
					        tab_menu=tab_menu+"<li class='"&current&"dg_ico_"&i&"' style='background-image:url("&rshelp("pic")&");background-repeat:no-repeat;background-position:10px center;'>"&rshelp("title")&"<div class='t_arrow'></div></li>"
						    if i=1 then searchlist=searchlist+"<div>" else searchlist=searchlist+"<div class='hide'>"
						    searchlist=searchlist+"<div class=""clear20""></div><div class=""show_pro""><h3 class=""h3_1"">收藏之王，名品地带</h3>"

							set rsupdata=server.CreateObject("adodb.recordset")
							sql="select top 10 * from HotProduct where [type]="&rshelp("id")&" order by sort desc,addtime desc,id desc"
							rsupdata.open sql,conn,1,3
							if not rsupdata.eof then
							do while not rsupdata.eof
							searchlist=searchlist+ "<dl><dt><a href='/auctions/"&rsupdata("AuctionID")&".html?s=t'><img src="""&rsupdata("pic")&""" width=""100"" height=""83"" /></a></dt><dd class=""now_price"">现价:"&rsupdata("price")&"円</dd><dd title='"&rsupdata("title")&"'><a href='/auctions/"&rsupdata("AuctionID")&".html?s=t'>"&left(rsupdata("title"),22)&"</a></dd><dd class=""red"">现价:"&FormatNumber(cdbl(CurrentPrice)*web_rate,2,-1)&"元</dd></dl>"
							rsupdata.movenext
							loop
							rsupdata.close
							set rsupdata=nothing
							end if	
					        searchlist=searchlist+"</div><div class=""clear20""></div></div>"
					  else
					        tab_menu2=tab_menu2+"<li class='"&current&"dg_ico_"&i&"' style='background-image:url("&rshelp("pic")&");background-repeat:no-repeat;background-position:10px center;'>"&rshelp("title")&"<div class='t_arrow'></div></li>"
							if i=7 then searchlist2=searchlist2+"<div>" else searchlist2=searchlist2+"<div class='hide'>"
						    searchlist2=searchlist2+"<div class=""clear20""></div><div class=""show_pro""><h3 class=""h3_1"">收藏之王，名品地带</h3>"

							set rsupdata=server.CreateObject("adodb.recordset")
							sql="select top 10 * from HotProduct where [type]="&rshelp("id")&" order by sort desc,addtime desc,id desc"
							rsupdata.open sql,conn,1,3
							if not rsupdata.eof then
							do while not rsupdata.eof
							searchlist2=searchlist2+ "<dl><dt><a href='/auctions/"&rsupdata("AuctionID")&".html?s=t'><img src="""&rsupdata("pic")&""" width=""100"" height=""83"" /></a></dt><dd class=""now_price"">现价:"&rsupdata("price")&"円</dd><dd title='"&rsupdata("title")&"'><a href='/auctions/"&rsupdata("AuctionID")&".html?s=t'>"&left(rsupdata("title"),22)&"</a></dd><dd class=""red"">现价:"&FormatNumber(cdbl(CurrentPrice)*web_rate,2,-1)&"元</dd></dl>"
							rsupdata.movenext
							loop
							rsupdata.close
							set rsupdata=nothing
							end if	
					        searchlist2=searchlist2+"</div><div class=""clear20""></div></div>"
					  end if
					  
					  
					  i=i+1
					  rshelp.movenext
			          loop
			          rshelp.close
			          set rshelp=nothing
			          end if
					  response.Write tab_menu		 
				      %>

					</ul>
					<div class="tab_box">
						<%=searchlist%>
					</div>
				</div>
			</div>
			<div class="jp_m_box_2">
				<div class="reg_box show_s_2">
					<ul class="tab_menu">
						<%=tab_menu2%>
					</ul>
					<div class="tab_box">
						<%=searchlist2%>
					</div>
				</div>
			</div>
			
		</div>	
		
        
        
         <!--#include file="common/right.asp"--> 
        
        
        
        
	</div>
</div>

<div class="clear"></div>



<!--#include file="../../common/footerauctions.asp"-->


</body>
</html>